package com.scf.loanmanage.service;

import com.scf.loanmanage.entity.Repayment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface RepaymentService {

    //分页查所有药
    List<Repayment> selectAll(@Param("pageIndex") Integer pageIndex,
                              @Param("pageSize")  Integer pageSize);

    //查询总条数
    Integer selectcount();
    //查询企业或ID
    List<Repayment> selectByname(@Param("enterprisename")String enterprisename,@Param("code")String code);

    //通过ID查对象
    Repayment selectByReid(Integer reid);
    //修改还钱的利息和本金
    void update(@Param("reid")Integer reid,@Param("Interestpayable")Double Interestpayable,@Param("exInterest")Double exInterest);

}
